package com.mini.admin.api.openfeign;


import com.mini.admin.api.entity.SysOauthClient;
import com.mini.common.core.result.RestResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * 提供外部feign调用  Client 的相关操作
 * @author Zhou Feng
 */
@FeignClient(value = "mini-admin", path = "/open/client", contextId = "admin-oauth-client")
public interface AdminOAuthClientOpen {

    /**
     * 根据 clientId获取client
     */
    @GetMapping("/getByClientId")
    RestResponse<SysOauthClient> getClientByClientId(@RequestParam("clientId") String clientId);
}
